package com.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 水电费
 *
 * @TableName water_electricity
 */
@TableName(value = "water_electricity")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class WaterElectricity extends CommonProperty implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 宿舍id
     */
    @TableField(value = "dorm_id")
    private String dormId;

    /**
     * 时间
     */
    @TableField(value = "time")
    private String time;

    /**
     * 用水量  单位（立方）
     */
    @TableField(value = "water_consum")
    private Double waterConsum;

    /**
     * 水费
     */
    @TableField(value = "water_charge")
    private Double waterCharge;

    /**
     * 用电量 单位（度）
     */
    @TableField(value = "electricity_consum")
    private Double electricityConsum;

    /**
     * 电费
     */
    @TableField(value = "electricity_charge")
    private Double electricityCharge;

    /**
     * 缴纳状态
     */
    @TableField(value = "is_pay")
    private Integer isPay;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}